package com.neuedu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 *    1 jdbc 查询元数据
 *
 *    2 io
 *
 *    3 根据模板写  文件
 *
 */

/**
 * 实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    // MySQL 8.x    yyyy-mm-dd java.sql.Date    yyyy-mm-dd HH:mm:ss  LocalDateTime
    private Integer userid;
    private String username;
    private String password;
    private Date expire;
    private String nickname;
    private Date lastlogin;
    private Double sal;

    public User(String username, String password, String nickname) {
        this.username = username;
        this.password = password;
        this.nickname = nickname;
    }
}
